<!--
  *@Description : 这里是点赞列表
  *@author 萧红
  *@date 2020-03-27 23:16
  *@LastEditTime 2020-03-27 23:16
  *@LastEdititors
-->
<template>
    <div id="dianzanlist">
        <Tittle :title="'点赞列表'"></Tittle>
        <div :style="{height:$inerHeight + 55 + 'px'}">
          <cube-scroll ref="scroll" :data="dataList">
              <div v-for="(data,index) in dataList" :key="index" class="info">
                <!--<div :key="index">{{data}}</div>-->
                <Info :info="data.info" :showUnderBtn='0' class="border-bottom-1px"></Info>
              </div>
          </cube-scroll>
        </div>
    </div>
</template>

<script>
import Tittle from '../../components/Tittle'
import Info from '../../components/Info'
export default {
  name: 'DianZanList',
  components: {
    Tittle,
    Info
  },
  beforeCreate () {
    this.did = this.$route.query.did
    this.apis.getDianZan({did: this.did}).then((res) => {
      // console.log(res.data)
      if (res.code === 200) {
        this.dataList = res.data
      } else {
        this.$toast(res.msg)
      }
    })
  },
  data () {
    return {
      did: 0, // 保存动态的id
      dataList: [] // 保存点赞列表数据
    }
  },
  methods: {
  }
}
</script>

<style scoped lang="stylus">
@import "../../../node_modules/stylus-px2rem"
  #dianzanlist
  {
    .info
    {
      padding 2px
    }
  }
</style>
